import { connect } from 'react-redux'

import App from '../components/App'
import { wechat } from 'reducers/common'
import { logout, loginStatus } from 'reducers/user'

const mapActionCreators = {
  logout,
  loginStatus,
  wechat
}

const mapStateToProps = (state) => ({
  user: state.user,
  common: state.common
})

export default connect(mapStateToProps, mapActionCreators)(App)
